package system.entity;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;
import lombok.Data;

@Table(name = "sys_role")
@Data
public class SysRole implements Serializable {
    /**
     * 组ID
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value = "组ID")
    private Integer id;

    /**
     * 组名称
     */
    @Column(name = "name")
    @ApiModelProperty(value = "组名称")
    private String name;

    /**
     * 顺序
     */
    @Column(name = "order_num")
    @ApiModelProperty(value = "顺序")
    private Integer orderNum;

    /**
     * 成员数
     */
    @Column(name = "member_count")
    @ApiModelProperty(value = "成员数")
    private Integer memberCount;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    /**
     * 备注
     */
    @Column(name = "remark")
    @ApiModelProperty(value = "备注")
    private String remark;

    private static final long serialVersionUID = 1L;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", orderNum=").append(orderNum);
        sb.append(", memberCount=").append(memberCount);
        sb.append(", createTime=").append(createTime);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", remark=").append(remark);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}